import Mock from 'mockjs';

// 模拟用户数据
export const mockUser = () => {
	return Mock.mock({
		'id|1-100': 1,

		'age|18-40': 1
		// 'avatar': '@image(100x100, #50B347, #FFF, Mock)'
	});
};

// 模拟商品列表
export const mockProductList = () => {
	return Mock.mock({
		'list|5-10': [{
			'id|+1': 1,
			'name': '@ctitle(5,10)',
			'price|10-1000': 1,
			'image': '@image(200x200, #FFC0CB, #333, Product)'
		}]
	});
};